package com.dddd.blog.api.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-03-08
 */
@Data
@TableName("ams_admin")
@ApiModel(value = "Admin对象", description = "")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    @ApiModelProperty("管理员名称")
    private String name;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("管理员密码")
    private String password;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("性别")
    private Integer gender;

    @ApiModelProperty("个人头像")
    private String avatar;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("qq")
    private String qqNumber;

    @ApiModelProperty("wechat")
    private String wechat;

    @ApiModelProperty("简介")
    private String summary;

    @ApiModelProperty("唯一字符串")
    private String uuid;

    @ApiModelProperty("密钥")
    private String salt;

    @ApiModelProperty("状态")
    private Integer status;



    @Override
    public String toString() {
        return "Admin{" +
            "uid=" + uid +
            ", name=" + name +
            ", nickname=" + nickname +
            ", password=" + password +
            ", roleId=" + roleId +
            ", gender=" + gender +
            ", avatar=" + avatar +
            ", email=" + email +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", qqNumber=" + qqNumber +
            ", wechat=" + wechat +
            ", summary=" + summary +
            ", uuid=" + uuid +
            ", salt=" + salt +
            ", status=" + status +
        "}";
    }
}
